#include <stdio.h>

struct Address {
    int id;
    int set;
    char name[100];
    char email[100];
};

int main() {
    int i = 42; // 假设 i 已经被赋值为 42

    // 使用指定初始化语法初始化结构体
    struct Address addr = {.id = i, .set = 0};

    // 打印结构体成员的值
    printf("Address id: %d\n", addr.id);
    printf("Address set: %d\n", addr.set);

    // 注意：name 和 email 未初始化，默认会被设为零或空
    printf("Address name: %s\n", addr.name);
    printf("Address email: %s\n", addr.email);

    return 0;
}

